<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/share/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <title>角色详情</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<%@ include file="/WEB-INF/share/easyuilist.jsp"%>
    <script type="text/javascript">
	    $(function () {
	        initControl();
	    })
	    //初始化控件
	    function initControl() {
	    }
	    //保存表单
	    function AcceptClick() {
	        if (!$('#form1').Validform()) {
	            return false;
	        }
	        var postData = $("#form1").GetWebControls();
	        $.SaveForm({
	            url: "${ctx}/role/save?",
	            param: postData,
	            loading: "正在保存数据...",
	            success: function () {
	                $.currentIframe().$("#gridTable").trigger("reloadGrid");
	            }
	        })
	    }
	</script>
</head>
<body>
<form id="form1">
<input id="id" value="${id}" type="hidden"/>
<div style="margin-left: 10px; margin-right: 30px;">
    <table class="form">
        <tr>
            <td class="formTitle">角色名称<font face="宋体">*</font></td>
            <td class="formValue">
                <input id="title" value="${title}" type="text" class="form-control" placeholder="请输入名称" isvalid="yes" checkexpession="NotNull" />
            </td>
        </tr>
        <tr>
            <td class="formTitle">排序<font face="宋体">*</font></td>
            <td class="formValue">
                <input id="sort" value="${sort}" type="text" class="form-control" placeholder="请输入排序" isvalid="yes"  checkexpession="Num" />
            </td>
        </tr>
    </table>
</div>
</form>
</body>
</html>
